package com.zyong.design.pattern.responsibility.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-04-08 23:46
 */
public class Client {
    public static void main(String[] args) {
        BaseRequestHandler a = new AHandler();
        BaseRequestHandler b = new BHandler();
        BaseRequestHandler c = new CHandler();

        a.next(b);
        b.next(c);

        a.doHandler("链路待处理的数据");
    }
}
